package com.yihu.beans.fileManager;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.yihu.beans.PictureDetail;
import com.yihu.beans.user.User;

public class Files implements Serializable{
	
	public Long id ;
	
	//file name
	public String fileName = "";
	
	public String url = "";
	
	public String parentFolder = "";
	
	//file size
	public long size = 0;
	
	// type : file , image, video, audio, folder , etc .
	public String fileType = ""; 
	
	public boolean hasFile ;
	
	public boolean isDirectory ;
	
	public Date createTime ;
	
	private PictureDetail picture ;
	
//	public Thumbs[] thumbs ;
	
	public User user;
	
	private boolean isRichFile;//add by aaron

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public long getSize() {
		return size;
	}

	public void setSize(long size) {
		this.size = size;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public boolean isHasFile() {
		return hasFile;
	}

	public void setHasFile(boolean hasFile) {
		this.hasFile = hasFile;
	}

	public boolean isDirectory() {
		return isDirectory;
	}

	public void setDirectory(boolean isDirectory) {
		this.isDirectory = isDirectory;
//		setFileName(fileName + "/");
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

//	public Thumbs[] getThumbs() {
//		return thumbs;
//	}
//
//	public void setThumbs(Thumbs[] thumbs) {
//		this.thumbs = thumbs;
//	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getParentFolder() {
		return parentFolder;
	}

	public void setParentFolder(String parentFolder) {
		this.parentFolder = parentFolder;
	}

	public PictureDetail getPicture() {
		return picture;
	}

	public void setPicture(PictureDetail picture) {
		this.picture = picture;
	}

	public boolean isRichFile() {
		return isRichFile;
	}

	public void setRichFile(boolean isRichFile) {
		this.isRichFile = isRichFile;
	}
	
}
